<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Img extends Controller{
    public function img(){
        //echo 111;eixt;
        return $this->fetch();
    }
public function upload()
{

    $this->request->post();
    $file =request()->file("files");
    $file1 =request()->file("files1");
    $info = $file->move(ROOT_PATH.'public'.DS.'uploads');//图片保存路径
    $aa = $file1->move(ROOT_PATH.'public'.DS.'uploads');//图片保存路径
    $a=$info->getSaveName();//输出图片的路径及名字
    $b=$aa->getSaveName();
    var_dump($a,$b);exit;
}
}
